<!DOCTYPE html>
<html>
<head>
	<template file="Home/meta" />
	<template file="Home/css" />




    <script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
			'getBrandWCPayRequest',
			<?php echo $jsApiParameters; ?>,
			function(res){
				
			window.location.href='{:U("User/Index/index")}';
			}
		);
	}

	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
		        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
		    }
		}else{
		    jsApiCall();
		}
	}

	
	</script>
</head>
<body>

<table class="am-table am-table-bordered am-table-radius am-table-striped am-margin-top-lg">
	<tr>
		<td> 订单号：</td>
		<td>  {$info.order_sn}</td>
	</tr>

	<tr>
		<td> 类型：</td>
		<td> 充值</td>
	</tr>


	<tr>
		<td> 费用：</td>
		<td>  {$info.price_sum}</td>
	</tr>




</table>

<div  class="am-text-center am-padding-horizontal-xl">
	<button class="am-btn am-btn-warning am-btn-xl am-btn-block am-round"  type="button" onClick="callpay()" >立即支付</button>
</div>


</body>
</html>